package com.zj.service;

import com.zj.web.bean.OrderMessageDTO;
import com.zj.web.bean.OrdersDTO;

import java.util.List;

public interface OrdersService {
    //订单状态
    //订单状态：0-未支付，1-待发货, 2-已发货,3-已完成
    Integer ORDER_STATUS_UNPAID = 0;
    Integer ORDER_STATUS_UNSHIPPED = 1;
    Integer ORDER_STATUS_UNRECEIVED = 2;
    Integer ORDER_STATUS_FINISHED = 3;
    //添加订单
    public OrdersDTO addOrder(OrdersDTO orders);
    //多表查询，根据状态和用户Id查询订单详情信息
    public List<OrdersDTO> findUnfinishedOrder(Integer order_status1,Long user_id);

    //根据订单id修改订单状态
    public boolean updateOrderStatus(Long orderId, Integer orderStatus,String email);

    //根据id查询订单信息，多表查询
    public List<OrdersDTO> findOrderById(Long order_id);


    //添加订单（AI客服下单）
    public OrderMessageDTO addOrderByAI(OrdersDTO orders);

    //根据订单id查询订单状态
    public Integer findOrderStatusById(Long orderId);

}
